package cn.wolfcode.shop.api.domain;


import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class SkuProperty extends BaseDomain {

    private static final int INPUT_TYPE = 0;
    private static final int CHECK_TYPE = 1;
    private static final int SELECT_TYPE = 2;

    private String name; //SKU属性的名称

    private Long catalogId; // SKU属性所属分类ID

    private Byte type; //该商品分类属性类型

    private Integer sequence; //排序

    public String getPropertyType(){

        switch (type){
            case INPUT_TYPE:return "输入框";
            case CHECK_TYPE:return "多选框";
            case SELECT_TYPE:return "下拉列表";
            default:return "";
        }
    }

}